function tj() {
    let box1 = document.querySelector('input[ placeholder="请输入账号"]')
    let box2 = document.querySelector('input[ placeholder="请输入密码"]')
    let box = {
        usernime: box1.value,
        password: box2.value,
    }
    if (box1.value == '' && box2.value == '') {
        alert('账号密码不能为空')
    } else {
        localStorage.setItem('BOX', JSON.stringify(box))
        alert('注册成功')
        location.href = './login.html'
    }
}